package com.xuecheng.content.domain.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.content.domain.model.dto.TeachplanDto;
import com.xuecheng.content.domain.model.entity.Teachplan;

import java.util.List;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author itcast
 * @since 2024-07-25
 */
public interface TeachplanService extends IService<Teachplan> {

    List<TeachplanDto> queryTreeNodes(Long courseId);

    Integer queryMaxOrderBy(Teachplan teachplan);

    void updateDownOrderBy(Teachplan teachplan);

    Integer queryMinOrderBy(Teachplan teachplan);

    void updateUpOrderBy(Teachplan teachplan);

    void saveTeachPlan(Teachplan teachplan);

    List<Long> queryNextIds(Teachplan teachplan);

    void batchUpdateOrderBy(List<Long> teachPlanIds);
}
